package com.jia.train.seat.service;

import com.jia.train.global.page.PageResponse;
import com.jia.train.seat.entity.DailyTrainTicket;
import com.jia.train.seat.request.DailyTrainTicketQueryRequest;
import com.jia.train.seat.response.DailyTrainTicketQueryResponse;
import jakarta.validation.Valid;

import java.util.Date;

public interface DailyTrainTicketService {

    void genDailyTrainTicket(Date date, String code);

    PageResponse<DailyTrainTicketQueryResponse> selectPage(@Valid DailyTrainTicketQueryRequest request);

    DailyTrainTicket selectByUnique(String tripCode, Date date,
                                    String start, String end);
    void deleteTicket();
}
